package com.china.produce.plugins;

import com.china.produce.enums.ProductTypeEnum;
import org.springframework.stereotype.Component;

/**
 * @ClassName
 * @Author niujie
 * @Version
 * @Description 机器产品插件
 * @CreateTime 2025/7/23
 */
@Component
public class MachineProductPlugin implements ProductObjPlugins{
    @Override
    public String findProduct(Long productId) {
        return "machine: " + productId;
    }

    @Override
    public boolean supports(ProductTypeEnum productTypeEnum) {
        return productTypeEnum.name().equals(ProductTypeEnum.MACHINE.name());
    }
}
